const files = require("../../model/files")

const {result} = require("../../utils")
const {FAILED} = require("../../enumeration/code")
module.exports = async ctx => {
  let res = await files.find(ctx)
  if(res){
    ctx.body = result(res,"")
  } else {
    ctx.body = result(null,"错误",FAILED)
  }

}
